find the solution of linear equations